package boerse.main.Account;


import java.util.ArrayList;

import boerse.main.Asset.CashAccount;
import boerse.main.Asset.ShareDeposit;

/**
 * Define a Player 
 * @author Domi
 *
 */
public class Player {

	private CashAccount cashAccount;
	private String name;
	private ShareDeposit shareDeposit;
	private ArrayList<ActionLog> transfair;
	
	public Player(String name, CashAccount cashAccount, ShareDeposit shareDeposit) {
		this.cashAccount = cashAccount;
		this.name = name;
		this.shareDeposit = shareDeposit;
		this.transfair = new ArrayList<ActionLog>();
	}
	
	public String getName() {
		return name;
	}

	public CashAccount getCashAccount() {
		return cashAccount;
	}


	public ShareDeposit getShareDeposit() {
		return shareDeposit;
	}
	
	public void addTransfair(ActionLog a) {
		transfair.add(a);
	}
	
	@SuppressWarnings("unchecked")
	public ArrayList<ActionLog> getTransfair() {
		return (ArrayList<ActionLog>) transfair.clone();
	}
}
